

#include "BSTree.h"


int main()
{
	int a[] = { 8, 3, 1, 10, 6, 4, 7, 14, 13 };

	BSTree<int> t;
	for (auto e : a)
	{
		t.InsertR(e);
	}

	t.Inorder();
	std::cout << std::endl;

	for (auto e : a)
	{
		t.EraseR(e);

		t.Inorder();
		std::cout << std::endl;
	}

    

	return 0;
}
